/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved.
 */
package com.icinfo.cloud.provider.punish.service.impl;

import com.icinfo.cloud.provider.common.constant.Constant;
import com.icinfo.cloud.provider.punish.mapper.AppDocumentHandlePersonRecordMapper;
import com.icinfo.cloud.provider.punish.model.AppDocumentHandlePersonRecord;
import com.icinfo.cloud.provider.punish.service.IAppDocumentHandlePersonRecordService;
import com.icinfo.framework.core.service.support.MyBatisServiceSupport;
import com.icinfo.framework.mybatis.mapper.entity.Example;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述: 办案直通车执法人员记录表 app_document_handle_person_record 对应的Service接口实现类.<br>
 *
 * @author framework generator
 * @date 2022年08月31日
 */
@Service
public class AppDocumentHandlePersonRecordServiceImpl extends MyBatisServiceSupport implements IAppDocumentHandlePersonRecordService {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(AppDocumentHandlePersonRecordServiceImpl.class);

    @Autowired
    private AppDocumentHandlePersonRecordMapper appDocumentHandlePersonRecordMapper;

    @Override
    public List<AppDocumentHandlePersonRecord> getAppDocumentHandlePersonByDocumentId(String documentId) {
        Example example =new Example(AppDocumentHandlePersonRecord.class);
        example.createCriteria().andEqualTo("appDocumentId",documentId).andNotEqualTo("isDelete", Constant.STRING_1);
        return appDocumentHandlePersonRecordMapper.selectByExample(example);
    }
}
